package pc15;

import java.util.Scanner;

public class Ch03Ex02 {

	public static void main(String[] args) {
		//1. 변수선언
		String title = "표시할 마지막 알파벳을 입력하세요[a-z]";
		char a=' ';
		Scanner sc = null;
		
		//2. 계산 및 출력
		sc = new Scanner(System.in);
		System.out.println(title);
		a = sc.findInLine(".").charAt(0);
		for(char j = 'a';j <= a;++j){
			for(char i = 'a';i <= a-j+'a';++i){
				System.out.print((char)i);
			}
			System.out.println("");
		}
		
		sc.close();
	}
}
